put "This is your typical Droolish guard: big, stupid, and very, "& "very strong ...smelling. At the moment he seems to be concentrat"& "ing on lifting the dumbell. He is the guard who is supposed to "& "be guarding the bunker."into field "info"
pass opencard
end opencard
-- part 1 (button)
-- low flags: 00
-- high flags: A003
-- rect: left=161 top=302 right=323 bottom=192
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: OK
----- HyperTalk script -----
on mouseUp
global filter
if filter is "yes" then
beep
exit mouseup
end if
global donteat
get bkgnd field "do what"
if the number of words in it > 1 then
beep 2
oneword
exit mouseup
end if
if it contains "examine" or it contains "look" then
send "opencard" to this card
exit mouseup
end if
if it contains "hit" or it contains "kick" or it contains "punch" or it contains "push" or it contains "attack" or it contains "kill" then
play "boing"
put "When you hit the Drool, he goes wild and hits you. Very "& "hard. To make a long story short, he kills you.≈∏"into field"info"
global filter
put "yes" into filter
global action
put "attack" into action
exit mouseup
end if
if it contains "eat" or it contains "consume" then
put "When you bite the Drool, he goes wild and hits you. Very "& "hard. To make a long story short, he kills you.≈∏"into field"info"
global filter
put "yes" into filter
global action
put "attack" into action
exit mouseup
end if
if it contains "talk" or it contains "speak" then
put "The Drool is not listening."into field"info"
exit mouseup
end if
if it contains "give" or it contains "offer"then
ask "What would you like to give the Drool?"
if it contains "booze" or it contains "bottle" or it contains "drink" or it contains "liquor" then
global booz
if booz is "empty" then
put "The Drool takes one look at the empty bottle and loses"& " interest. "into field "info"
exit mouseup
end if
global boozer
put "yes" into boozer
put "The Drool stops his exercising, takes the bottle, and "& "with a mischievous little giggle, walks away.≈∏" into field "info"
global inventory
get offset ("Booze",inventory)
put "" into char it to 4 +it of inventory
global droolhide
put "yes" into droolhide
global action
put "yah" into action
global filter
put "yes" into filter
exit mouseup
else
put "The Drool is not interested in the "&it&"." into field "Info"
exit mouseup
end if
end if
if it is "" then
put "Speak up. I can't hear you." into field "info"